<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta
			name="viewport"
			content="width=device-width, initial-scale=1.0"
		/>
		<title>荣誉证书与合作伙伴-北京他山石科技</title>
		<!-- 引入 Bootstrap CSS (本地) -->
		<link
			href="static/css/bootstrap.min.css"
			rel="stylesheet"
		/>
		<!-- 临时使用CDN的Font Awesome 4进行测试 -->
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
		<!-- 引入自定义样式 -->
		<link
			rel="stylesheet"
			href="static/css/about.css"
		/>
		<!-- 证书页面特有样式 -->
		<style>
			/* 证书展示区域样式 */
			.certificates-section {
				padding: 80px 0;
				background-color: #f8f9fa;
			}
			
			.section-header {
				text-align: center;
				margin-bottom: 50px;
			}
			
			.section-title {
				font-size: 36px;
				font-weight: bold;
				color: #111928;
				margin-bottom: 15px;
			}

			/* 为不同位置的banner-title设置不同颜色 */
			.about-banner .banner-title {
				color: white;
			}
			
			.certificates-section .banner-title {
				color: #333;
			}
			
			/* 证书网格布局 */
			.certificates-grid {
				display: grid;
				grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
				gap: 25px;
				max-width: 1200px;
				margin: 0 auto;
			}
			
			/* 单列展示5个的响应式布局 */
			@media (min-width: 1200px) {
				.certificates-grid {
					grid-template-columns: repeat(5, 1fr);
				}
			}
			
			@media (max-width: 1199px) and (min-width: 992px) {
				.certificates-grid {
					grid-template-columns: repeat(4, 1fr);
				}
			}
			
			@media (max-width: 991px) and (min-width: 768px) {
				.certificates-grid {
					grid-template-columns: repeat(3, 1fr);
				}
			}
			
			@media (max-width: 767px) and (min-width: 576px) {
				.certificates-grid {
					grid-template-columns: repeat(2, 1fr);
				}
			}
			
			@media (max-width: 575px) {
				.certificates-grid {
					grid-template-columns: 1fr;
				}
			}
			
			/* 证书项样式 */
			.certificate-item {
				background-color: white;
				border-radius: 8px;
				overflow: hidden;
				box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
				transition: transform 0.3s ease, box-shadow 0.3s ease;
				display: flex;
				flex-direction: column;
				align-items: center;
				padding: 15px;
			}
			
			.certificate-item:hover {
				transform: translateY(-5px);
				box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
			}
			
			.certificate-image {
				width: 100%;
				height: auto;
				max-height: 200px;
				object-fit: contain;
				margin-bottom: 15px;
			}
			
			.certificate-name {
				font-size: 16px;
				font-weight: 500;
				color: #374151;
				text-align: center;
				margin: 0;
			}
		</style>
	</head>
	<body>
		<!-- 导航栏 -->
		<nav
			class="navbar navbar-expand-lg navbar-light bg-white shadow-sm sticky-top"
		>
			<div class="container">
				<a
					class="navbar-brand"
					href="#"
				>
					<img
						src="./static/image/logo.png"
						alt="企业Logo"
						class="d-inline-block align-text-top"
					/>
				</a>
				<button
					class="navbar-toggler"
					type="button"
					data-bs-toggle="collapse"
					data-bs-target="#navbarNav"
					aria-controls="navbarNav"
					aria-expanded="false"
					aria-label="Toggle navigation"
				>
					<span class="navbar-toggler-icon"></span>
				</button>
				<div
					class="collapse navbar-collapse justify-content-center"
					id="navbarNav"
				>
					<ul class="navbar-nav">
						<li class="nav-item mx-3">
							<a
								class="nav-link"
								href="index.html"
								>首页</a
							>
						</li>
						<li class="nav-item mx-3" id="aboutUsContainer">
							<a
								class="nav-link active"
								aria-current="page"
								href="about.html"
								id="aboutUsBtn"
								>关于我们</a>
							<!-- 关于我们冒泡弹窗 -->
							<div id="aboutUsDropdown" class="about-us-dropdown">
								<div class="dropdown-content">
									<button class="dropdown-item" onclick="window.location.href='about.html'">公司简介</button>
									<button class="dropdown-item" onclick="window.location.href='certificates.html?type=certificates'">荣誉证书</button>
									<button class="dropdown-item" onclick="window.location.href='certificates.html?type=partners'">合作伙伴</button>
								</div>
							</div>
						</li>
						<li class="nav-item mx-3">
							<a
								class="nav-link"
								href="business.html"
								>业务介绍</a
							>
						</li>
						<li class="nav-item mx-3">
							<a
								class="nav-link"
								href="cases.html"
								>客户案例</a
							>
						</li>
						<li class="nav-item mx-3">
							<a
								class="nav-link"
								href="news.html"
								>新闻资讯</a
							>
						</li>
						<li class="nav-item mx-3">
							<a
								class="nav-link"
								href="contact.html"
								>联系我们</a
							>
						</li>
					</ul>
				</div>
			</div>
		</nav>

		<!-- Banner大图 -->
		<div class="about-banner">
			<img src="https://www.tes-amm.cn/public/uploads/20230129/6f04053c897bad42044c0efe639003ca.jpg" alt="关于我们背景图" class="banner-image">
			<div class="banner-content">
				<h1 class="banner-title">关于我们</h1>
			</div>
		</div>

		<!-- 证书与合作伙伴展示区域 -->
		<section class="certificates-section">
			<div class="container">
				<div class="section-header"></div>
				<!-- 证书内容 -->
				<div class="certificates-grid" id="certificatesGrid">
					<div class="certificate-item">
						<img src="./static/image/certificate1.png" alt="荣誉证书1" class="certificate-image">
						<p class="certificate-name">ISO9001质量管理体系认证</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate2.png" alt="荣誉证书2" class="certificate-image">
						<p class="certificate-name">ISO14001环境管理体系认证</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate3.png" alt="荣誉证书3" class="certificate-image">
						<p class="certificate-name">ISO45001职业健康安全管理体系认证</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate4.png" alt="荣誉证书4" class="certificate-image">
						<p class="certificate-name">信息技术服务管理体系认证</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate5.png" alt="荣誉证书5" class="certificate-image">
						<p class="certificate-name">信息安全管理体系认证</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate6.png" alt="荣誉证书6" class="certificate-image">
						<p class="certificate-name">国家高新技术企业认证</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate1.png" alt="荣誉证书7" class="certificate-image">
						<p class="certificate-name">环保认证证书</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate2.png" alt="荣誉证书8" class="certificate-image">
						<p class="certificate-name">AAA级信用企业认证</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate3.png" alt="荣誉证书9" class="certificate-image">
						<p class="certificate-name">知识产权管理体系认证</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate4.png" alt="荣誉证书10" class="certificate-image">
						<p class="certificate-name">绿色供应链认证</p>
					</div>
				</div>
				
				<!-- 合作伙伴内容 -->
				<div class="certificates-grid" id="partnersGrid" style="margin-top: 50px;">
					<div class="certificate-item">
						<img src="./static/image/certificate1.png" alt="合作伙伴1" class="certificate-image">
						<p class="certificate-name">联想集团</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate2.png" alt="合作伙伴2" class="certificate-image">
						<p class="certificate-name">戴尔科技</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate3.png" alt="合作伙伴3" class="certificate-image">
						<p class="certificate-name">惠普企业</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate4.png" alt="合作伙伴4" class="certificate-image">
						<p class="certificate-name">IBM</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate5.png" alt="合作伙伴5" class="certificate-image">
						<p class="certificate-name">微软</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate6.png" alt="合作伙伴6" class="certificate-image">
						<p class="certificate-name">华为技术</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate1.png" alt="合作伙伴7" class="certificate-image">
						<p class="certificate-name">浪潮信息</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate2.png" alt="合作伙伴8" class="certificate-image">
						<p class="certificate-name">腾讯云</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate3.png" alt="合作伙伴9" class="certificate-image">
						<p class="certificate-name">阿里云</p>
					</div>
					<div class="certificate-item">
						<img src="./static/image/certificate4.png" alt="合作伙伴10" class="certificate-image">
						<p class="certificate-name">百度智能云</p>
					</div>
				</div>
			</div>
		</section>

		<!-- 页脚 -->
		<footer class="text-white py-12">
			<div class="container">
				<div class="row">
					<div class="col-md-3">
						<div class="footer-column-content">
							<h4 class="footer-title">关于我们</h4>
							<ul class="footer-links about-us-links">
								<li><a href="about.html" class="footer-link-item">公司介绍</a></li>
								<li><a href="#" class="footer-link-item">行业优势</a></li>
								<li><a href="certificates.html?type=certificates" class="footer-link-item">认证证书</a></li>
								<li><a href="certificates.html?type=partners" class="footer-link-item">合作伙伴</a></li>
							</ul>
						</div>
					</div>
					<div class="col-md-3">
						<div class="footer-column-content">
							<h4 class="footer-title">业务介绍</h4>
							<ul class="footer-links business-links">
								<li><a href="#" class="footer-link-item">企业回收</a></li>
								<li><a href="#" class="footer-link-item">硬件租聘</a></li>
								<li><a href="#" class="footer-link-item">硬件销售</a></li>
							</ul>
						</div>
					</div>
					<div class="col-md-3">
						<div class="footer-column-content">
							<h4 class="footer-title footer-title-diff">联系方式</h4>
							<div class="contact-info">
								<div class="contact-phone">
									<img src="./static/image/phone.png" alt="">
									<p>010-88888888</p>
									<p>+86 1388888888</p>
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-3">
						<div class="footer-column-content">
							<h4 class="footer-title footer-title-diff"></h4>
							<div class="contact-info">
								<div class="contact-address">
									<img src="./static/image/address.png" alt="">
									<p>北京市朝阳区</p>
									<p>永安里solo二期B座5-3</p>
								</div>
							</div>
						</div>
					</div>
					<div class="col-md-3">
						<div class="footer-column-content">
							<h4 class="footer-title footer-title-diff">关注品牌监测平台</h4>
							<div class="qrcode-container">
								<div class="qrcode-item">
									<img src="./static/image/qrcode.png" alt="微信公众号" class="qrcode-image" />
									<p class="qrcode-text">关注</p>
								</div>
								<div class="qrcode-item">
									<img src="./static/image/qrcode.png" alt="品牌监控" class="qrcode-image" />
									<p class="qrcode-text">关注</p>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</footer>
		<div class="footer_bottom">copyright© 北京他山石科技有限公司版权所有 2011-2024 京ICP备11006662号-1</div>

		<!-- 引入 Bootstrap JS (本地) -->
		<script
			src="static/js/bootstrap.bundle.min.js"
		></script>
		
		<script>
			document.addEventListener('DOMContentLoaded', function() {
				// 关于我们下拉菜单显示/隐藏
				const aboutUsBtn = document.getElementById('aboutUsBtn');
				const aboutUsDropdown = document.getElementById('aboutUsDropdown');
				
				aboutUsBtn.addEventListener('click', function(e) {
					// 阻止事件冒泡，防止点击链接时页面跳转
					e.stopPropagation();
					aboutUsDropdown.classList.toggle('show');
				});
				
				// 点击其他区域关闭下拉菜单
				document.addEventListener('click', function(e) {
					if (!aboutUsBtn.contains(e.target) && !aboutUsDropdown.contains(e.target)) {
						aboutUsDropdown.classList.remove('show');
					}
				});
				
				// 动态更改banner标题和内容显示
				const bannerTitle = document.querySelector('.about-banner .banner-title');
				const urlParams = new URLSearchParams(window.location.search);
				const type = urlParams.get('type');
				const certificatesGrid = document.getElementById('certificatesGrid');
				const partnersGrid = document.getElementById('partnersGrid');
				
				// 替换合作伙伴图片为partner系列图片的函数
				function replacePartnerImages() {
					const partnerImages = document.querySelectorAll('#partnersGrid .certificate-image');
					const partnerImageNames = [
						'partner1.png', 'partner2.png', 'partner3.png', 'partner4.png',
						'partner5.png', 'partner6.png', 'partner7.png', 'partner8.png',
						'partner1.png', 'partner2.png'
					];
					
					partnerImages.forEach((img, index) => {
						if (index < partnerImageNames.length) {
							img.src = `./static/image/${partnerImageNames[index]}`;
							img.alt = `合作伙伴${index + 1}`;
						}
					});
				}

				// 更新标题和显示内容的函数
				function updateContent(type) {
					if (type === 'certificates') {
						bannerTitle.textContent = '荣誉证书';
						certificatesGrid.style.display = 'grid';
						partnersGrid.style.display = 'none';
					} else if (type === 'partners') {
						bannerTitle.textContent = '合作伙伴';
						certificatesGrid.style.display = 'none';
						partnersGrid.style.display = 'grid';
						// 确保DOM完全加载后再替换图片
						setTimeout(replacePartnerImages, 10);
					}
				}
				
				// 如果URL参数中指定了类型，则更新内容
				if (type === 'certificates' || type === 'partners') {
					updateContent(type);
				} else {
					// 默认显示荣誉证书
					updateContent('certificates');
				}
				
				// 下拉菜单按钮的点击事件已经在HTML中通过onclick属性实现
				// 这里不再添加额外的事件监听器，以确保导航功能正常工作
			});
		</script>
	</body>
</html>